PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.text Package / PDFTextEngine Class / getStringInBox Method / getStringInBox(String,PDFFont,double,double) Method
String to wrap in the box.
Font used to draw the string.
The box width.
The box height.
In This Topic
    getStringInBox(String,PDFFont,double,double) Method
    In This Topic
    Gets the string that fits in the given box.
    Syntax
    public static java.lang.String getStringInBox( 
       java.lang.String s,
       PDFFont font,
       double width,
       double height
    )

    Parameters

    s
    String to wrap in the box.
    font
    Font used to draw the string.
    width
    The box width.
    height
    The box height.

    Return Value

    The number of characters in the string that fit in the given box.
    See Also